import zmq,time
context = zmq.Context.instance()
sock = context.socket(zmq.PUB)
sock.bind('tcp://0.0.0.0:12031')

while True:
  sock.send("local %s"%time.time())
  time.sleep(1)

